<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2012.03.17.
   家居商家刷新控制器($小牛New $2014.07.28)*/

!defined('Q_PATH') && exit;

class JiajucompanyrefreshController extends AController{

	public function init__(){
		$this->_arrNotMethod=array(
			'save_previewstatus',
			'save_preview',
			'view_preview',
			'foreverdelete',
			'foreverdelete_deep',
			'input_change_ajax',
			'input_change_unique',
			'forbid',
			'closeitem',
			'openitem',
			'resume',
			'clear_recycle',
			'save_sort',
			'insert',
			'add',
			'edit',
			'update'
		);
		
		parent::init__();
	}
	
	public function index($sName=null,$bDisplay=true){
		$oJiajucompanyrefresh=Q::instance('JiajucompanyrefreshModel');
		
		$bResult=$oJiajucompanyrefresh->refreshCompany($GLOBALS['_company_']['jiajucompany_id']);
		if($bResult===false){
			$this->E($oJiajucompanyrefresh->getErrorMessage());
		}

		$this->S('恭喜你，成功刷新了商铺。');
	}

}
